/* Car details page styles to match the provided mockup */
body {
    background: #f0f0f0;
}

h2, h3 {
    font-weight: 700;
    font-family: 'k2D', sans-serif;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 1.5rem;
}

form h3 {
    margin-top: 0.5em;
    padding-left: 0.5em;
    font-size: 2em;
    border-left: solid 4px #1f7a5b;
}

.carousel-control-next, .carousel-control-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 100px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    border-radius: 0px;
    font-size: 22px;
}

.c-item img, .carousel-item img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.mt-3 {
    background-color: #fff;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 1em;
}

.summary-panel{
    background-color: #fff;
    padding: 1em;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    text-transform: capitalize;
}

.summary-panel h2 {
    font-size: 2rem;
    padding-left: 5px;
    margin-left: 5px;
    margin-top: 5px;
    border-left: solid 4px #1f7a5b;
}

.ulez {
    filter: invert(54%) sepia(76%) saturate(355%) hue-rotate(112deg) brightness(90%) contrast(83%);
}

.stat {
    filter: invert(22%) sepia(1%) saturate(0%) hue-rotate(353deg) brightness(104%) contrast(88%);
}

.ulez, .stat {
    width:100%;
    max-width: 30px;
    height:100%;
    max-height: 30px;
    font-weight: 1000;
}

.car-details {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Title box */
.title-box {
    border-left: 8px solid #1f7a5b;
}

.title-accent {
    width: 8px;
    height: 46px;
    background: #1f7a5b;
    margin-right: 10px;
}

.title-brand {
    font-weight: 700;
    font-size: 18px;
}

.title-sub {
    color: #666;
}

/* Price panel */
.price-panel {
    width: 100%;
    max-width: 1200px;
    height: 5.5rem;
    background-color: #166246;
    color: #fff;

    display: flex;
    justify-content: center;
    align-items: center;

    font-family: 'K2D' , 'Sans-serif';
    font-size: 2.5rem;
    font-weight: 700;
}

/* Ensure the price paragraph has no default margins and is centered */
.price-panel p {
    margin: 0;
    padding: 0;
    line-height: 1;
    text-align: center;
}

.price-big {
    font-size: 24px;
    color: #166246;
    font-weight: 700;
}


/* Main image area */
.main-image-wrap {
    position: relative;
    
}

.img-main {
    height: 100%;
    max-height: 440px;
    object-fit: cover;
    display: block;
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 22px;
}

.carousel-control-prev {
    left: 12px;
}

.carousel-control-next {
    right: 12px;
}

/* thumbnail strip */

.thumb-strip {
    /* CSS variables allow responsive visible-count control */
    --cd-thumb-w: 96px; /* thumb width */
    --cd-visible: 8; /* default visible thumbs on large screens */

    background: #4b4b4b;
    padding: 0 8px; /* small inset so first/last thumb aren't flush */
    display: flex;
    align-items: center;
    overflow-x: auto; /* horizontal scroll when there are more thumbs than visible */
    -webkit-overflow-scrolling: touch;

    /* compute max-width to show exactly `--cd-visible` thumbnails + gaps
       add a small extra inset (16px) to account for left/right padding */
    max-width: calc(
        (var(--cd-thumb-w) * var(--cd-visible))
        + (var(--cd-thumb-gap) * (var(--cd-visible) - 1))
        + 16px
    );
}

/* custom scrollbar for webkit browsers */
.thumb-strip::-webkit-scrollbar { height: 12px; }
.thumb-strip::-webkit-scrollbar-thumb { background: #104C3B;}
.thumb-strip::-webkit-scrollbar-track { background: #6d6d6d; }

/* Responsive visible-count: fewer thumbs visible on smaller screens */
@media (max-width: 1199px) {
    .thumb-strip { --cd-visible: 12; }
}
@media (max-width: 991px) {
    .thumb-strip { --cd-visible: 10; }
}
@media (max-width: 767px) {
    .thumb-strip { --cd-visible: 8; }
}
@media (max-width: 575px) {
    .thumb-strip { --cd-visible: 6; }
}

.thumb-item {
    flex: 0 0 var(--cd-thumb-w, 96px);
    width: var(--cd-thumb-w, 96px);
    height: calc(var(--cd-thumb-w, 96px) * 0.6667);
    overflow: hidden;
    border-radius: 0;
    background: #666;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* ensure no internal padding */
    border: none;
    margin: 0;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb-item img:hover {
    filter: brightness(50%);
    transition: 100ms;
}

.thumb-item:focus { outline: 2px solid #1f7a5b; outline-offset: 2px; }


.thumb-strip-indicator {
    height: 6px;
    background: #1f7a5b;
    width: 42%;
    border-radius: 3px;
    margin-top: 8px;
}

/* Tabs */
.nav-tabs .nav-link {
    border: 0;
    color: #444;
    border-radius: 0;
    padding: 8px 18px;
}

.nav-tabs .nav-link:hover {
    background-color: #30946f;
    color: #fff;
}


/* active tab as parallelogram */
.nav-tabs .nav-link.active {
    background: #1f7a5b;
    color: #fff;
    /* transform: skewX(-18deg); */
    padding: 8px 20px;
}
.nav-tabs .nav-link span {
    display: inline-block;
    /* transform: skewX(18deg); */
}

.nav-tabs .nav-link.active span {
    color: #fff;
}
.card .tab-content {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-top: 0;
}

/* Summary panel */
.summary-panel .card-body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.sum-col {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
}

.sum-col img {
    width: 36px;
    height: 36px;
}

.muted {
    color: #777;
    font-size: 13px;
}

/* Enquire form */

#enquire-btn {
    background-color: #38a888;
    color: #eaeaea;
    padding: 10px 40px;
    width: 100%;
    text-decoration: none;
    text-transform: uppercase;
    display: inline-block;
    text-align: center;

    font-family: "K2D", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 1.5rem;
}

#enquire-btn:hover{
    background: #30946f;
    color: #fff;
    transition-duration: 400ms;
}

#enquire {
    background-color: #fff;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.295);

}

form {
    padding-top: 5px;
    margin-left: 20px;
    margin-right: 20px;
}

.form-control, .form-select {
    font-family: "Roboto Condensed", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    letter-spacing: 1px;

    font-size: 1em;

    background-color: #e4e4e4;
    border: solid 1px;
    border-color: #424242;
    border-radius: 0px;

    /* margin-right: 5px; */
}

.btn {
    background-color: #38a888;
    color: #eaeaea;
    border-radius: 0px;
    padding: 10px 40px;

    margin-bottom: 50px;

    font-family: "K2D", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 1.5rem;
}

.btn:hover {
    background-color: #24725c;
    color: #eaeaea;
    border-radius: 0px;
}

.recaptcha-placeholder {
    width: 150px;
    height: 60px;
    background: #fff;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
}

.submit-btn {
    background: #1f7a5b;
    color: #fff;
    border: none;
}

.card { border-radius:0px; }


/* Responsive tweaks */
@media (max-width: 991px) {
    .price-panel { width:100%; }
    .img-main { height:250px; }
}

.feature-list {
    list-style-type: none;
    padding-left: 20px;
}

.feature {
    margin-bottom: 6px;
    margin-left: 5px;
    background-color: #eaeaea;
    padding: 7px;
    font-weight: bold;
    border-radius: 5px;
    display: inline-block;
}

.tech-cat {
    font-family: 'K2D', sans-serif;
    border-left: solid 4px #1f7a5b;
    padding-left: 8px;
    font-weight: bolder;
    margin-top: 0.5em;

}

.tech-stat {
    display: flex;
    align-items: center; /* vertical centering */
    justify-content: space-between;
    gap: 12px;
    padding: 8px 1rem;
    border-top: 1px solid #e6e6e6;
}

/* Remove default paragraph margins inside stat rows and align text */
.tech-stat p {
    margin: 0;
}

.tech-stat p:first-child {
    color: #333;
}

.tech-stat p:last-child {
    text-align: right;
}

/* Alternating background for better readability */
#technical .tech-stat:nth-of-type(odd) {
    background: #fafafa;
}

#technical .tech-stat:nth-of-type(even) {
    background: #ffffff;
}